import { IconStyle } from './assets/iconfont/iconfont';
import { GlobalStyle } from './style';
import { useRoutes } from 'react-router-dom';
import { Provider } from 'react-redux';
import routes from './routes';
import store from './store';

function App() {
  return (
    <Provider store={store}>
      <div className='App'>
        <GlobalStyle></GlobalStyle>
        <IconStyle></IconStyle>
        <i className='iconfont'>&#xe62b;</i>
        {useRoutes(routes)}
      </div>
    </Provider>
  );
}

export default App;
